ASSEMBLY_NAME=libgalaxium
BUILD_DIR = ../../../build/
ASSEMBLY = $(BUILD_DIR)$(ASSEMBLY_NAME).so
CC = gcc
CFLAGS = -fPIC -g -c -Wall -I . `pkg-config --cflags gstreamer-0.10`
LDFLAGS = -shared -Wl,-soname,$(ASSEMBLY_NAME).so `pkg-config --libs gstreamer-0.10`

ASSEMBLY_WRAPPER = 
ASSEMBLY_WRAPPER_IN = 

PC_FILES =
PC_FILES_IN =

RESOURCES =
EXTRAS = 
DATA_FILES = 

FILES =  \
	cabextract.c \
	gstreamer.c \
	mspack/cabd.c \
	mspack/lzxd.c \
	mspack/mszipd.c \
	mspack/qtmd.c \
	mspack/system.c

GENERATED_FILES =

OBJECTS = ${FILES:.c=.o}

all: $(ASSEMBLY)

$(ASSEMBLY): $(OBJECTS)
	mkdir -p $(dir $(ASSEMBLY))
	$(CC) -o $(ASSEMBLY) $(OBJECTS) $(LDFLAGS)

%.o: %.c
	$(CC) $(CFLAGS) $*.c -o $@

clean:
	rm -f $(OBJECTS)
	rm -f $(ASSEMBLY)

include $(top_srcdir)/Makefile.include

